package plugins.packagejava;

import domain.model.project.ProjectDeveloper;
import domain.model.project.ProjectType;
import shared.model.BuilderObject;

import java.util.List;

/**
 * @author Gregory Boissinot
 */
public class JavaPackageProjectTypeBuilder implements BuilderObject<ProjectType> {

    private final RWJavaPackageProjectType javaPackageProjectType;

    public JavaPackageProjectTypeBuilder() {
        this.javaPackageProjectType = new JavaPackageProjectTypeImpl();
    }

    public JavaPackageProjectTypeBuilder projectDeveloperList(List<ProjectDeveloper> projectDevelopers) {
        this.javaPackageProjectType.setProjectDeveloperList(projectDevelopers);
        return this;
    }

    @Override
    public ProjectType build() {
        return javaPackageProjectType;
    }
}
